import request from '@/utils/request'

export function getLessonCategoryList() {
  return request({
    url: '/admin/lesson/category/list',
    method: 'get'
  })
}

export function lessonCategoryCreate(data) {
  return request({
    url: '/admin/lesson/category/create',
    method: 'post',
    data: data
  })
}
export function lessonCategoryUpdate(data) {
  return request({
    url: '/admin/lesson/category/update',
    method: 'post',
    data: data
  })
}
export function lessonCategoryDelete(data) {
  return request({
    url: '/admin/lesson/category/delete',
    method: 'post',
    data: data
  })
}
export function getLessonUserList(data) {
  return request({
    url: '/admin/lesson/user/list',
    method: 'get',
    params: data
  })
}

export function getLessonArticleList(data) {
  return request({
    url: '/admin/lesson/article/list',
    method: 'get',
    params: data
  })
}
export function lessonArticleCreate(data) {
  return request({
    url: '/admin/lesson/article/create',
    method: 'post',
    data: data
  })
}
export function lessonArticleUpdate(data) {
  return request({
    url: '/admin/lesson/article/update',
    method: 'post',
    data: data
  })
}
export function lessonArticleDelete(data) {
  return request({
    url: '/admin/lesson/article/delete',
    method: 'post',
    data: data
  })
}
